﻿using System.Windows;

namespace ThePresenter.Windows
{
	/// <summary>
	/// Interaction logic for ProgressDialog.xaml
	/// </summary>
	public partial class ProgressDialog : Window
	{
		#region Dependency property identifiers

		/// <summary>
		/// Identifies the <see cref="IsIndeterminate"/> dependency property.
		/// </summary>
		/// <value>The identifier for the <see cref="IsIndeterminate"/> dependency property.</value>
		public static readonly DependencyProperty IsIndeterminateProperty = DependencyProperty.Register("IsIndeterminate", typeof(bool), typeof(ProgressDialog));

		/// <summary>
		/// Identifies the <see cref="Value"/> dependency property.
		/// </summary>
		/// <value>The identifier for the <see cref="Value"/> dependency property.</value>
		public static readonly DependencyProperty ValueProperty = DependencyProperty.Register("Value", typeof(double), typeof(ProgressDialog));

		#endregion

		#region Peopreties

		/// <summary>
		/// Gets or sets the IsIndeterminate. This is a dependency property.
		/// </summary>
		/// <value>The IsIndeterminate.</value>
		public bool IsIndeterminate
		{
			get
			{
				return (bool)GetValue(IsIndeterminateProperty);
			}
			set
			{
				SetValue(IsIndeterminateProperty, value);
			}
		}

		/// <summary>
		/// Gets or sets the Value. This is a dependency property.
		/// </summary>
		/// <value>The Value.</value>
		public double Value
		{
			get
			{
				return (double)GetValue(ValueProperty);
			}
			set
			{
				SetValue(ValueProperty, value);
			}
		}
		#endregion

		#region Constructors

		/// <summary>
		/// Initializes a new instance of the <see cref="ProgressDialog"/> class.
		/// </summary>
		public ProgressDialog()
		{
			InitializeComponent();
		}

		#endregion
	}
}
